package com.hbk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hbk.entity.NewsContent;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface NewsContentMapper extends BaseMapper<NewsContent>{

    /**根据新闻编号查询*/
    NewsContent getByNewsId(@Param("newsId")String newsId);

    /**根据新闻编号删除*/
    void deleteByNewsId(@Param("newsId")String newsId);

    /**查询其他新闻详情*/
    List<NewsContent> listOther();
}
